
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑日志</title>
    <link rel="stylesheet" href="../css/blog.css">
</head>
<body>
<div class="box">
    <header>
        <h2>我的BLOG</h2>
    </header>
    <div class="content clearBox">
        <div class="left">
            <h5 class="title">编辑日志</h5>
            <form action="edit1.php" method="post" name="edform">
                <dl>
                    <dt>日志标题：</dt>
                    <dd><input type="text" name="title"/></dd>
                </dl>

                <dl>
                    <dt>日志内容：</dt>
                    <dd><textarea name="content" ></textarea></dd>
                </dl>
                <input type="hidden" name="entry" value="<?php  echo $_GET['entry']; ?>">
                <button type="submit" name="btn">提交</button>
            </form>
        </div>


        <div class="right">
            <div>
                <h5 class="title">关于我</h5>
                <p class="right-ctn">php初学者</p>
            </div>
        </div>
    </div>

    <div class="footer">CopyRight&nbsp;2017</div>
    <script>
        var form = document.forms["edform"],
            title = form["title"],
            content = form["content"],
            btn = form["btn"];
        btn.onclick = function () {
            if (title.value === "" || content.value === "") {
                alert("请输入日志标题或内容");
                return false;
            }
        }
    </script>
</body>
</html>